Repository navigation
Conversation
First step in the cleanup of the python parser. Now one of the failed tests is passing again (switched from wavelet to gepol cavity).
Some parameter changed to accommodate for a GEPOL cavity instead of a WAVELET one Some cleanup in Input.cpp removing wavelet related stuff
All tsless stuff removed from the test and test file renamed as cpcm
Most tests now pass. The standalone tests complain about PATCHLEVEL but a "git grep PATCHLEVEL" gives no matching instance. Puzzling...
|
The todo part is part of this PR - in other words work in progress or is it to be done after this PR is accepted? |
|
The todos is something I have not managed to fix yet. Roberto will have a look. This PR is still WIP, although I have not marked it as such. |
|
Thanks for the PR. In Markdown the
I would prefer that the title of the PR clearly states if it's WIP or not. |
There was a problem hiding this comment.
Very nice, thanks! There are some further things to fix:
- The function
int integralEquation(const std::string & name)is no longer needed and you should remove it fromInput.cpp, so that it doesn't generate compiler warnings. - The
PCMInputstruct, defined inPCMInput.hshould also be purged of the, now useless, input parameters. - There are still some things in the Python input script that lead nowhere, like
METALSPHEREandGREENSFUNCTIONSUM. - The changes should be documented in the
CHANGELOG.mdfile. Especially Point 2 above, which will be API-breaking. - You should also go through the documentation of the input, to check that everything matches.
| @@ -45,20 +45,11 @@ struct CavityData { | |||
| /*! The minimal distance between two sampling points on different spheres. Relevant | |||
| * for TsLessCavity */ | |||
| double minDistance; | |||
There was a problem hiding this comment.
This parameter should also be purged!
| : molecule(_molec), | ||
| area(_area), | ||
| probeRadius(_probeRadius), | ||
| minDistance(_minDistance), |
| area_ = host_input.area * angstrom2ToBohr2(); | ||
| patchLevel_ = host_input.patch_level; | ||
| coarsity_ = host_input.coarsity * angstromToBohr(); | ||
| minDistance_ = host_input.min_distance * angstromToBohr(); |
There was a problem hiding this comment.
Also this one should be removed.
| @@ -67,22 +58,14 @@ struct CavityData { | |||
| double _area, | |||
| double _probeRadius, | |||
| double _minDistance, | |||
There was a problem hiding this comment.
This parameter should be removed from the constructor.
| @@ -366,12 +355,8 @@ CavityData Input::cavityParams() const { | |||
| area_, | |||
| probeRadius_, | |||
| minDistance_, | |||
There was a problem hiding this comment.
This parameter should be removed.
| double coarsity_; | ||
| /// GePol and TsLess cavities average element area | ||
| double area_; | ||
| /// TsLess cavity minimal distance between sampling points |
There was a problem hiding this comment.
These two lines should be removed as well.
| double diagonalScaling = 1.0694; | ||
| std::string radiiSet = "UFF"; | ||
| double minimalRadius = 0.1 * angstromToBohr(); | ||
| double minimalRadius = 0.3 * angstromToBohr(); |
There was a problem hiding this comment.
There should be a check added on the minimal radius parameter.
| REQUIRE(type == parsedInput.cavityType()); | ||
| REQUIRE(patchLevel == parsedInput.cavityParams().patchLevel); | ||
| REQUIRE(coarsity == Approx(parsedInput.cavityParams().coarsity)); | ||
| REQUIRE(area == Approx(parsedInput.cavityArea())); |
There was a problem hiding this comment.
You can get the area from cavityParams().area, instead of adding a new getter to the input object.
| int patchLevel = 1; | ||
| double coarsity = 0.3; | ||
| std::string type = "GEPOL"; | ||
| double area = 0.3 * angstromToBohr() * angstromToBohr(); |
There was a problem hiding this comment.
There is an angstrom2ToBohr2() function available for this in PhysicalConstants.cpp
| # Default: 0.3 au^2 | ||
| # Valid for: GePol cavity | ||
| # Valid values: double strictly greater than 0.01 Angstrom^2 | ||
| # Default: 0.3 Angstrom^2 (later converted to 1.07132... au^2) |
There was a problem hiding this comment.
The minimal input assumes atomic units as defaults, as such the default for areas really is 0.3 AU^2 We should maybe re-set the default to the AU^2 value of 0.3 Angstrom^2, instead of having this oblique comment in the script.
First step in the cleanup of the python parser. Now one of the failed tests is passing again (switched from wavelet to gepol cavity).
Some parameter changed to accommodate for a GEPOL cavity instead of a WAVELET one Some cleanup in Input.cpp removing wavelet related stuff
All tsless stuff removed from the test and test file renamed as cpcm
Most tests now pass. The standalone tests complain about PATCHLEVEL but a "git grep PATCHLEVEL" gives no matching instance. Puzzling...
|
You can avoid the merge commit with |
|
I have followed roberto's instructions. We were just commenting about how the whole structure is getting a bit overwhelming at times (understatement)... |
|
What parts exactly are overwhelming? I am asking this so that we either improve docs or perhaps write up a guide or blog post. |
|
I will try to make a (very) long story a bit shorter.
|
|
Thanks for the very good points - indeed we have to be careful that we don't push people out with our better tools and workflows. |
|
Just a hint for problem 1): |
|
For problem 1, there's a technical solution and once we agree upon it, it will become easily second nature. |
|
il_freddy [11:53 AM]
|
|
Have you checked the documentation? If this stuff is missing, add it or add an issue on the repo to keep track of it. |
|
I seem to recall we don't have much about running test and what to do when they give wrong answers, although the documentation for writing new tests seems good to me. I will try to add something there now that my experience with these problems is fresh! |
|
I might not have kept up with the documentation work lately, that's true. |
|
@ilfreddy status on this? |
|
I have incorporated this changeset into #107 |
|
Superseded by #107. Closing. |
Description
Removal of code related to Wavelets and TsLess cavity which is not present in the released version
How Has This Been Tested?
All tests, except the standalone ones now pass
Todos
Standalone tests shall be fixed